import request from '@/utils/request'

// 查询列表
export function listPaymentType(query) {
  return request({
    url: '/aipay/apiType/list',
    method: 'get',
    params: query
  })
}

export function listPaymentTypeAll() {
  return request({
    url: '/aipay/apiType/all',
    method: 'get'
  })
}

// 查询详细
export function getPaymentType(id) {
  return request({
    url: '/aipay/apiType/' + id,
    method: 'get'
  })
}

// 新增
export function addPaymentType(data) {
  return request({
    url: '/aipay/apiType',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePaymentType(data) {
  return request({
    url: '/aipay/apiType',
    method: 'put',
    data: data
  })
}

// 删除
export function delPaymentType(id) {
  return request({
    url: '/aipay/apiType/' + id,
    method: 'delete'
  })
}
